﻿using System;
using System.Collections.Generic;
using System.Text;

namespace EC.Application.Interface
{
    using EC.Entity;
    using EC.Entity.Query;
    using EC.Entity.Request.Settle;
    using EC.Entity.Response.Settle;

    /// <summary>
    /// 结算接口
    /// </summary>
    public interface SettleService
    {
        /// <summary>
        /// 获取
        /// </summary>
        /// <param name="id">编号</param>
        /// <returns></returns>
        SettleResponse Get(int id);

        /// <summary>
        /// 更新状态
        /// </summary>
        /// <returns></returns>
        JResult Audit(AuditRequest request);

        /// <summary>
        /// 确认打款
        /// </summary>
        /// <returns></returns>
        JResult Confirm(AuditRequest request);

        /// <summary>
        /// 驳回
        /// </summary>
        /// <returns></returns>
        JResult Reject(AuditRequest request);

        /// <summary>
        /// 备注
        /// </summary>
        /// <returns></returns>
        JResult SaveRemark(SettleRemarkRequest request);

        /// <summary>
        /// 查询
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        DataGrid<SettleQueryResponse> GetPager(SettleQuery query);
    }
}
